import axios from '@/libs/axios1';
let jsonHeaders = { 'content-type': 'application/json;charset=UTF-8' };
let report = '/scientific/report';
export const getReportList = (params) => {
    return axios({
        url: `${report}/page`,
        method: 'GET',
        params,
        headers: jsonHeaders
    });
};

//创建科研信息(申请)
export const addReport = (data) => {
    return axios({
        url: `${report}`,
        method: 'POST',
        data,
        headers: jsonHeaders
    });
};

//修改科研信息(申请)
export const updateReport = (id, data) => {
    return axios({
        url: `${report}/${id}`,
        method: 'PUT',
        data,
        headers: jsonHeaders
    });
};

//删除科研信息(申请)
export const delReport = (id) => {
    return axios({
        url: `${report}/${id}`,
        method: 'DELETE',
        headers: jsonHeaders
    });
};


//审核
export const checkReport = (id, data) => {
    return axios({
        url: `${report}/check/${id}`,
        method: 'PUT',
        data,
        headers: jsonHeaders
    });
};
